<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Bmob 文件上传 2</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="dist/Bmob-1.6.3.min.js"></script>
    <script type="text/javascript" src="js/bmob.my.js"></script>
    <link href="css/index.css" rel="stylesheet" type="text/css"/>

    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
</head>

<body>
<table>
    <thead>
    <td>选择文件</td>
    <td>操作</td>
    <td width="60%">上传结果</td>
    </thead>
    <tr>
        <td>
            <a href="javascript:;" class="a-upload">
                <span class="showFileName">选择文件</span>
                <input type="file" name="file">
            </a>
        </td>
        <td>
            <button class="btn_upload">立即上传</button>
        </td>
        <td>
            <span class="result"></span>
        </td>
    </tr>
    <tr>
        <td style="width: 20%;">
            <a href="javascript:;" class="a-upload">
                <span class="showFileName">选择图片</span>
                <input type="file" name="file" accept=".png,.jpg">
            </a>
        </td>
        <td>
            <button class="btn_upload">立即上传</button>
        </td>
        <td>
            <span class="result"></span>
        </td>
    </tr>
</table>

<script type="text/javascript" src="js/index.js"></script>

</body>

</html>